<script type="text/javascript">
		Yutil.useLoadingMessage();
		Yutil.en.enhance();
		$('serviceCreateDialog_title').innerHTML = '特殊服务';
</script>
<%	
		String employeeInServiceCreate = request.getParameter("employeeid_service_create");
%>

<p></p>

<fieldset class="form"  id="service_create_form">
		<table align="left">
			<tr>
				<td>
					开始日期：<input id="serviceStartDate" type="text" id=“start_date” value="" class=" date"/><br/>
				</td>
			</tr>
			<tr>
				<td>
					结束日期：<input id="serviceEndDate" type="text" id=“start_date” value="" class=" date"/><br/>
				</td>
			</tr>
		</table>
		<br/><p></p>
		<div class="hrule-dots"></div>
		
		
		<table align="left">
			<tr>
				<td>
					<ul class="tree">
							<li><span>其他服务</span>
									<ul>
											<li>
													服务名称：<input type="text" value=""/><br/>
													服务内容：<input type="text" value=""/><br/>
													服务金额：<input type="text" value=""/>
											</li>
									</ul>
							</li>
					</ul>
				</td>
			</tr>
		</table>
		<br/><p></p>
		<div class="hrule-dots"></div>
		<p>
			<input class='button' type="button" value="保存" onclick="saveService(this)"/>
			<input class='button' type="button" value="取消" onclick="cancelCreateService()"/>
			<input class='button' type="button" value="重置" onclick="resetCreateService()"/>
		</p>
</fieldset>

<script type="text/javascript">
	cancelCreateService = function() {
		Yutil.hideDialog("serviceCreateDialog");
	}

	resetCreateService = function() {
		var pars = 'employeeid_service_create=' + '<%= employeeInServiceCreate%>';
				var url = 'la_service_create.jsp';
				var myAjax = new Ajax.Updater('serviceCreateDialog_content',url,{method:'get', parameters: pars,  evalScripts: true});
	}
	
	saveService = function(btn) {
		var url = "/" + "<%= LocalContants.PROJECT_NAME %>" + "/serviceCreate.do";
		var serviceCreateForm = $('service_create_form');
		var pars = Form.serialize(serviceCreateForm);
		alert(pars);
		if(Yform.validateAllOnSubmit(btn)) {
				var myAjax = new Ajax.Updater("right",url,{method:'post',parameters: pars, evalScripts:true});
				Yutil.hideDialog("serviceCreateDialog");
		}	
	}	
</script>

<%@ page import="com.esms.struts.service.JspWidget" %> 
<%@ page import="java.util.*" %>
<%@ page import="com.esms.bean.Employee" %>
<%@ page import="com.esms.struts.service.*" %>
<%@ page language="java" contentType="text/html; charset=utf-8" %>